
            using System;
            using System.Collections.Generic;
            using System.Linq;
            using System.Text;
            using BusinessObject;
            using DataAccessLayer;

            namespace BusinessLogic
            {
                   /// <summary>
                    /// Define KhachHangUtil class. This class user for BussinessLayer.
    
                /// </summary>
              public class KhachHangUtil {
                    /// <summary>
                    /// Define function Insert for KhachHang Object.
                    /// </summary>
                    /// <param name="t">object data need Insert.</param>
                    /// <returns>
                    ///    True: if insert successfull.
                    ///    False: if insert error.
                    ///</returns>
                    public static int Insert(KhachHang t)
                    {
                        
                      return KhachHangDao.Insert(t);
                    }
                    /// <summary>
                    /// Define function Update for KhachHang Object.
                    /// </summary>
                    /// <param name="t">project data need updated.</param>
                    /// <returns>
                    ///    True: if update successful.
                    ///    False: if update Error.
                    ///</returns>
                    public static bool Update( KhachHang t )
                    {
                        
                      return KhachHangDao.Update( t );
                    }
                    /// <summary>
                    /// Get All KhachHang object from table KhachHang.
                    /// </summary>
                    /// <returns>List KhachHang object.</returns>
                    public static List<KhachHangResult> GetAll()
                    {     
                        return KhachHangDao.GetAll();
                    }
                    /// <summary>
                    /// Search KhachHang object in table KhachHang.
                    /// </summary>
                    /// <param name="t">Condition for Search.</param>

                    /// <returns>List KhachHangResult objects.</returns>

                     public static List<KhachHangResult> SearchKhachHangSomeCondition(KhachHang t)
                {
                        return  KhachHangDao.SearchKhachHangSomeCondition(t);
                }
/// <summary>
/// Get a KhachHang data object by primary key. 
/// </summary>
/// <param name="maKhachHang" >This is primary key.</param>
/// <returns>A KhachHang object.</returns>

                    public static KhachHang Get(int maKhachHang)
                    {
                      return KhachHangDao.Get(maKhachHang);
                    }
/// <summary>
/// This function to Delete KhachHang object by primary key.
/// </summary>
/// <param name="maKhachHang" >This is primary key.</param>
/// <returns>If succesful return True else  return False.</returns>

                    public static bool Delete(int maKhachHang)
                    {
                         
                      return KhachHangDao.Delete(maKhachHang);
                    }} }